﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;

namespace LdtJudge.DataEngine.Model.EvidenceDerivation
{
    /// <summary>
    /// 证据类型判定配置文件
    /// </summary>
    [Serializable]
    [XmlRootAttribute("root", IsNullable = false)]
    public class EvidenceTypeConfigModel
    {
        [XmlElementAttribute("casetype", IsNullable = false)]
        public List<EvidenceCaseType> evidenceCaseTypeList { get; set; }
    }

    /// <summary>
    /// 案件类型
    /// </summary>
    public class EvidenceCaseType
    {
        [XmlAttribute("value")]
        public string value { get; set; }
        [XmlElementAttribute("evidenceType", IsNullable = false)]
        public List<EvidenceType> evidenceTypeList{get;set;}
    }

    public class EvidenceType
    {
        [XmlAttribute("value")]
        public string value { get; set; }

        [XmlElementAttribute("booktype", IsNullable = false)]
        public List<EvidenceBookType> evidenceBookTypeList { get; set; }
    }

    /// <summary>
    /// 证据类型
    /// </summary>
    public class EvidenceBookType 
    {
        /// <summary>
        /// 案件类型
        /// </summary>
        [XmlAttribute("value")]
        public string value { get; set; }

        /// <summary>
        /// 路径
        /// </summary>
        [XmlAttribute("path")]
        public string path { get; set; }
    }
}
